//
//  BookingSummaryController.swift
//  SwiftStudy
//
//  Created by mybox_1027@sina.com on 16/5/18.
//  Copyright © 2016年 mybox_1027@sina.com. All rights reserved.
//

import UIKit

class BookingSummaryController: UITableViewController {
    let kSummaryAirlineCell = "SummaryAirlineCell"
    
    override func viewWillAppear(animated: Bool) {
        super.viewWillAppear(animated)
    }
    
    override func tableView(tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
        return 3
    }
    
    override func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {
        var cell:SummaryAirlineCell? = tableView.dequeueReusableCellWithIdentifier(kSummaryAirlineCell) as? SummaryAirlineCell
        if (cell == nil) {
            cell = SummaryAirlineCell()
        }
        
        cell?.initCellStyle(ESummaryAirlineStyle.eSummaryAirlineReturn)
        return cell!
    }
    
}
